package com.zg.nacos.domain.req;

import com.zg.common.core.req.BaseReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/24 11:28
 */
@Data
@ApiModel
public class InstancePageReq extends NacosReq  {

    @ApiModelProperty(value = "服务名称", required = true)
    //@NotEmpty(message = "服务名称不能为空")
    private String serviceName;

    @ApiModelProperty(value = "分组", required = true)
    //@NotEmpty(message = "分组不能为空")
    private String groupName="DEFAULT_GROUP";

    @ApiModelProperty(value = "命名空间", required = true)
    //@NotEmpty(message = "命名空间不能为空")
    private String namespaceId;

    @ApiModelProperty(value = "集群名称", required = true)
    @NotEmpty(message = "集群名称不能为空")
    private String clusterName="DEFAULT";

    /**
     * 当前页码
     */
    @ApiModelProperty(value = "当前页码", required = true)
    private int pageNo=1;
    /**
     * 每页的数量
     */
    @ApiModelProperty(value = "每页的数量", required = true)
    private int pageSize=30;
}
